-
Notifications
You must be signed in to change notification settings - Fork 0
lightdm: low dependency login/display manger #875
Conversation
Home page: https://github.com/CanonicalLtd/lightdm Build and base setup is taken from: http://linuxfromscratch.org/blfs/view/svn/x/lightdm.html Notes: - lightdm must be installed to build greeters - gdm now means GraphicalDisplayManger - Final installation: install a greeter (slick-greeter) Tell the system to use lightdm instead of gdm after the next reboot #> systemctl disable gdm #> systemctl enable lightdm - Test w/o reboot #> systemctl disable gdm --now #> systemctl enable lightdm --now Play with the config under /etc/lightdm or not Mind the usual commands #> systemctl restart lightdm #> systemctl daemon-reload #> systemctl restart systemd-logind
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’d put the commit from merge/pull request #876 in here too.
--sbindir=/usr/bin \ | ||
--sysconfdir=/etc \ | ||
--docdir=/usr/share/doc/lightdm-${PKGVERSION} \ | ||
--disable-static \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’d prefer not specifying the default, to make the resulting configure line shorter.
lightdm-1.26.0-0/source/configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --sysconfdir=/etc --sharedstatedir=/var --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --datarootdir=/usr/share --datadir=/usr/share --infodir=/usr/share/info --localedir=/usr/share/locale --mandir=/usr/share/man --docdir=/usr/share/doc/lightdm --exec-prefix=/usr --prefix=/usr --libexecdir=/usr/lib/lightdm --localstatedir=/var --sbindir=/usr/bin --sysconfdir=/etc --docdir=/usr/share/doc/lightdm-1.26.0 --disable-static --disable-tests --enable-liblightdm-qt=no --with-greeter-user=gdm --with-greeter-session=slick-greeter
install -v -dm755 -o gdm -g gdm ${D}/var/lib/lightdm | ||
install -v -dm755 -o gdm -g gdm ${D}/var/lib/lightdm-data | ||
install -v -dm755 -o gdm -g gdm ${D}/var/cache/lightdm | ||
install -v -dm770 -o gdm -g gdm ${D}/var/log/lightdm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This break building this bee file as a normal user.
[BEE] => entering mee_install_post() ..
install: creating directory ‘/dev/shm/bee-pmenzel/lightdm/lightdm-1.26.0-0/image/var’
install: creating directory ‘/dev/shm/bee-pmenzel/lightdm/lightdm-1.26.0-0/image/var/lib’
install: creating directory ‘/dev/shm/bee-pmenzel/lightdm/lightdm-1.26.0-0/image/var/lib/lightdm’
install: cannot change owner and permissions of ‘/dev/shm/bee-pmenzel/lightdm/lightdm-1.26.0-0/image/var/lib/lightdm’: Operation not permitted
mee_install_post() { | ||
|
||
sed '/bin\/sh/ a \\n. /etc/profile' ${S}/tests/src/lightdm-session > ${D}/usr/bin/lightdm-session | ||
chmod 755 ${D}/usr/bin/lightdm-session |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the default permissions?
$ ls -l /dev/shm/bee-pmenzel/lightdm/lightdm-1.26.0-0/image/usr/bin/
total 1400
-rwxr-xr-x 1 pmenzel pmenzel 54128 Aug 22 13:19 dm-tool
-rwxr-xr-x 1 pmenzel pmenzel 1370176 Aug 22 13:19 lightdm
-rw-r--r-- 1 pmenzel pmenzel 201 Aug 22 13:19 lightdm-session
Upstream bug https://github.com/CanonicalLtd/lightdm/issues/37 reported.
lightdm.be0
Outdated
|
||
[Service] | ||
ExecStart=/usr/bin/lightdm | ||
StandardOutput=syslog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably copied that from the GDM service unit, but I think it’s not needed.
I tested this on keineahnung, and logging into my Xfce session, the Xfce panel is not scaled anymore (Settings → Appearance → Settings → Window scaling 2x). |
I can confirm this for thehawk, have you checked this with the xfce4_hidpi session or the default one? |
On 08/22/18 14:42, Thomas Kreitler wrote:
I can confirm this for thehawk, have you checked this with the
xfce4_hidpi session or the default one?
I used the default one. xfce4_hidpi is not needed anymore.
From the logs I can't tell what's happening (also its not really
possible to test this on a small monitor). Can the panel height be
set manually?
Yes, but it’s not feasible, as we can log into systems with
different monitors.
|
Then, what are the differences between xfce4_hidpi and xfce? Could it be, that this is an issue with xfce 4.13, which is a developer release? |
On 08/22/18 15:25, Thomas Kreitler wrote:
> I used the default one. xfce4_hidpi is not needed anymore.
Then, what are the differences between xfce4_hidpi and xfce?
The session xfce4_hidpi is a relict (outside of bee packages) from
Xfce 4.12.
```
$ sudo bee query /usr/share/xsessions/xfce4_hidpi.desktop
$ more /usr/share/xsessions/xfce4_hidpi.desktop
[Desktop Entry]
Version=1.0
Name=Xfce4 Desktop (HiDPI)
Comment=Use this session to run Xfce as your desktop environment on a HiDPI mon
itor
Exec=startxfce4_hidpi
Icon=
Type=Application
```
`startxfce4_hidpi` was a wrapper setting environment variables
and was removed from the Xfce packages with the update to 4.13.
So currently, it does not even start anymore. and I’ll remove
the file from the distmaster.
Could it be, that this is an issue with xfce 4.13, which is a
developer release?
Sure, it could be, but I do not know.
|
I've just stumbled over the nonexistant Are the pool-PC's ok for scale testing? The small eizo at thehawk isn't. |
On 08/22/18 15:43, Thomas Kreitler wrote:
I've just stumbled over the nonexistant `startxfce4_hidpi`, I've
written extra code for this case in the greeter -- Hmmmm.
Sorry, I forgot about it. Luckily it’s a generic for loop.
Are the pool-PC's ok for scale testing? The small eizo at thehawk
isn't.
Good question. I do not think you can select the 2x, but logging in
you should see if the panel is scaled or not.
|
I' ve checked the panel issues a little bit. Both failed to correctly apply 'window scaling' As for possible DBus issues, both machines allow connections to the panel, so no difference between the two setups ( One way I found to get a neatly scaled panel is to start it under the Gtk-Debugger ( |
Latest observations concering gdm vs. lightdm: |
Observations continued ... Procedere: Toggle scaling 1x->2x->1x This how the areas are named:
Lightdm installed after dist:
There was an interesting commit (Fix default size of new panels (Bug #14417), https://git.xfce.org/xfce/xfce4-panel/commit/?id=77e579478473d923fcf6c05a50a403f046dcea99).
Now rolling dice once more, running the latest panel from git:
My conclusion, the panel code is still buggy, and seems to suffer from uninitialized portions. |
How to proceed... |
|
Please say, when this solution (coexisting DMs with tag switch) is integrated into this pull request, so that we can test and merge it.
|
Will start on this next week. |
By the way, GDM also supports XDMCP. For our version 3.4.1 change
Restart GDM, and the command below works.
|
Lightdm is enabled per host by providing the 'lightdm' tag in our hostconfig. Installation steps on distmaster: - install updated gdm.service (see mariux64/mxtools) - bee install lightdm-1.26.0-0.x86_64 (surprise:) - systemctl enable lightdm Conditions and installation tested on sigstkflt, sigill & sigint.
Home page:
https://github.com/CanonicalLtd/lightdm
Build and base setup is taken from:
http://linuxfromscratch.org/blfs/view/svn/x/lightdm.html
Notes:
lightdm must be installed to build greeters
gdm now means GraphicalDisplayManger
Final installation:
Test w/o reboot